package com.reggie.common;

/**
 * @Author 早睡蛋
 * @Date 2022/7/3 22:46:41
 * @Desc:
 */
public class Constant {

    public static final String LOGIN_SESSION = "hzcctakeout:employeeToken:";

    public static final String USER_SESSION = "userSession";

    public static final String DISH_CACHE = "hzcctakeout:dish:";

    public static final String URL = "http://localhost:9666/";

    public static final String DISH_IMAGES = "dishImages/";
    public static final String SETMEAL_IMAGES = "setmealImages/";

    public static final String EMAIL_REX = "^(\\w+([-.][A-Za-z0-9]+)*){3,18}@\\w+([-.][A-Za-z0-9]+)*\\.\\w+([-.][A-Za-z0-9]+)*$";

    public static final String PHONE_REX = "^(13[0-9]{9})|(15[0-9]{9})|(17[0-9]{9})|(18[0-9]{9})|(19[0-9]{9})$";

    //用户注册验证码缓存
    public static final String REGISTER_CODE = "hzcctakeout:register:";

    public static final String LOGIN_TOKEN = "hzcctakeout:loginToken:";

}
